<?php
header("content-type:text/html;charset=utf8");
$con=mysqli_connect('localhost','root','root','test'); 
$ids=$_POST["ids"];
mysqli_query($con,"set names utf8");
$res=mysqli_query($con,"select * from shop where id in($ids)");
$arr=[];
while($row=mysqli_fetch_assoc($res)){
    $arr[]=$row;
}
if(count($arr)>0){
    $result = [
        "status"=>200,
        "msg"=>"ok",
        "data"=>$arr
    ]; 
}else{
    $result = [
        "status"=>404,
        "msg"=>"data is not found",
    ];
}
echo json_encode($result);